package com.example.entity.vo;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
@Api(tags = "历史审批")
public class WorkflowDocumentHisVo {

    @ApiModelProperty("业务单据编号")
    private String workflowDocumentID;

    @ApiModelProperty("审批编号")
    private String workflowConfigNo;

    @ApiModelProperty("审批名称")
    private String workflowConfigName;

    @ApiModelProperty("上报人编号")
    private String reporterNo;

    @ApiModelProperty("上报人名称")
    private String reporterName;

    @ApiModelProperty("创建时间")
    private String createTime;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("审批阶段")
    private String workflowLevel;

    @ApiModelProperty("审批人编号")
    private String approverNo;

    @ApiModelProperty("审批人名称")
    private String approverName;

    @ApiModelProperty("业务编号")
    private String documentNo;

    @ApiModelProperty("审批结果(N-拒绝，Y-同意，R-取消上报，S-上报)")
    private String approvalResult;

    @ApiModelProperty("审批时间")
    private String approvalTime;

    @ApiModelProperty("审批理由")
    private String approvalRemark;

    @Data
    @Accessors(chain = true)
    public static class WorkflowDocumentHisResult{

        private Long total;

        private List<WorkflowDocumentHisVo> result;
    }
}
